<style>
.runningRecord span.error{
    position:absolute     !important;

    left:257px;
}
</style>
<div class="pageContent">
    <form method="post"
        action="${rc.getContextPath()}/manage/runningRecord/saveRunningRecord"
        class="pageForm required-validate"
        onsubmit="return validateCallback(this, dialogAjaxDone);">
        <div class="pageFormContent" >
            <input type="hidden" name="navTabId" value="${navTabId!''}">
            <input type="hidden" name="id"
                value="<#if (runningRecord.id)??>${runningRecord.id!''}</#if>" />
            <input type="hidden" name="pattern"
                value="${pattern!''}" />
            <fieldset>
                <dl class="runningRecord">
                    <dt><@label key="equipmentCode.C,colon">设备编号：</@label></dt>
                    <dd>
                      <input class="required look" id="equipmentLookup.equipmentCode" name="equipmentCode" type="text" postField="equipmentCode" suggestFields="equipmentCode,equipmentText" 
                    suggestUrl="${rc.getContextPath()}/manage/equipment/equipmentSuggest" lookupGroup="equipmentLookup" value="${runningRecord.equipmentCode!''}"
                    warn="<@label key='equipmentCode.C,doesNotExist.C'>设备编号不存在</@label>"  remote="${rc.getContextPath()}/manage/equipment/validateEquipmentCodeForSelect"/>
                    <a class="btnLook" href="${rc.getContextPath()}/manage/equipment/equipmentLookUp" rel="equipmentLookup_dialog" width="700" height="450" lookupGroup="equipmentLookup" title="<@label key='queryEquipment.D'>设备选择<</@label>"></a>
                    </dd>
                </dl>
                <dl>
                    <dt><@label key='equipmentText.C,colon'>设备描述：</@label></dt>
                    <dd><input id="equipmentLookup.equipmentText" readonly="readonly" size="22" type="text" maxlength="60" name="equipmentText" value="${runningRecord.equipmentText!''}" />
                    </dd>
                </dl>
                <dl class="runningRecord">
                    <dt><@label key='equipmentStatusCode.C,colon'>设备状态：</@label></dt>
                    <dd >
                        <input class="required look" id="statusLookup.statusCode" name="statusCode"  type="text" postField="statusCode" suggestFields="statusCode,statusText" 
                        suggestUrl="${rc.getContextPath()}/manage/equipmentStatus/statusDropdown" lookupGroup="statusLookup" value="${runningRecord.statusCode!''}"
                            remote="${rc.getContextPath()}/manage/equipmentStatus/checkEquipmentStatusCode" warn="<@label key='equipmentStatus.C,doesNotExist.C'>设备状态编号不存在</@label>"/>
                        <a class="btnLook" href="${rc.getContextPath()}/manage/equipmentStatus/statusLookup" width="700" height="300"  rel="statusLookup_dialog"  lookupGroup="statusLookup" title="<@label key='queryEquipmentCategory.D'>设备类别选择<</@label>"></a>
                    </dd>
                </dl>
                <dl>
                    <dt><@label key="equipmentStatusText.C,colon">设备状态描述：</@label></dt>
                    <dd>
                        <input name="statusText" id="statusLookup.statusText" readonly="readonly"
                            value="${runningRecord.statusText!''}"
                            size="22" type="text" maxlength="60"  />
                    </dd>
                </dl>
                <dl>
                    <dt><@label key="startTime.C,colon">运行开始时间：</@label></dt>
                    <dd>
                        <input name="startTime"value="${(runningRecord.startTime?string('yyyy-MM-dd HH:mm'))?if_exists}"
                            size="22" type="text"  class="required date" readonly="readonly" dateFmt="yyyy-MM-dd HH:mm"/>
                        <a class="inputDateButton" href="javascript:;">选择</a>
                    </dd>
                </dl>
                <dl>
                    <dt><@label key="endTime.C,colon">运行结束时间：</@label></dt>
                    <dd>
                        <input name="endTime"value="${(runningRecord.endTime?string('yyyy-MM-dd HH:mm'))?if_exists}"
                            size="22" type="text"  class="date" readonly="readonly" dateFmt="yyyy-MM-dd HH:mm"/>
                        <a class="inputDateButton" href="javascript:;">选择</a>
                    </dd>
                </dl>
                <dl style="width:600px;height:90px;float:left;">
                    <dt><@label key='memo.C,colon'>备注：</@label></dt>
                    <dd>
                        <textarea style="width:435px;" name="memo"  maxlength="200" value="${runningRecord.memo!''}" rows="4"><#if (runningRecord.memo)??>${runningRecord.memo!''}</#if></textarea>
                    </dd>
                </dl>
            </fieldset>
        </div>
        <#if pattern!="add" && runningRecord??>
            <#assign createInfo=runningRecord>
            <#include "/common/createInfo.html">
        </#if>
        <div class="formBar">
            <ul>
                    <li>
                        <div class="buttonActive">
                            <div class="buttonContent">
                                <button type="submit"><@label key="save.B">保存</@label></button>
                            </div>
                        </div>
                    </li>
                    <li>
                        <div class="buttonActiveGrey">
                            <div class="buttonContent">
                                    <button type="button" class="close"><@label key="cancel.B">取消</@label></button>
                            </div>
                        </div>
                    </li>
            </ul>
        </div>
    </form>
</div>
